package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ZhuangtaiMapper;
import com.ruoyi.system.domain.Zhuangtai;
import com.ruoyi.system.service.IZhuangtaiService;

/**
 * 状态Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-08-10
 */
@Service
public class ZhuangtaiServiceImpl implements IZhuangtaiService 
{
    @Autowired
    private ZhuangtaiMapper zhuangtaiMapper;

    /**
     * 查询状态
     * 
     * @param ztId 状态主键
     * @return 状态
     */
    @Override
    public Zhuangtai selectZhuangtaiByZtId(Long ztId)
    {
        return zhuangtaiMapper.selectZhuangtaiByZtId(ztId);
    }

    /**
     * 查询状态列表
     * 
     * @param zhuangtai 状态
     * @return 状态
     */
    @Override
    public List<Zhuangtai> selectZhuangtaiList(Zhuangtai zhuangtai)
    {
        return zhuangtaiMapper.selectZhuangtaiList(zhuangtai);
    }

    /**
     * 新增状态
     * 
     * @param zhuangtai 状态
     * @return 结果
     */
    @Override
    public int insertZhuangtai(Zhuangtai zhuangtai)
    {
        return zhuangtaiMapper.insertZhuangtai(zhuangtai);
    }

    /**
     * 修改状态
     * 
     * @param zhuangtai 状态
     * @return 结果
     */
    @Override
    public int updateZhuangtai(Zhuangtai zhuangtai)
    {
        return zhuangtaiMapper.updateZhuangtai(zhuangtai);
    }

    /**
     * 批量删除状态
     * 
     * @param ztIds 需要删除的状态主键
     * @return 结果
     */
    @Override
    public int deleteZhuangtaiByZtIds(Long[] ztIds)
    {
        return zhuangtaiMapper.deleteZhuangtaiByZtIds(ztIds);
    }

    /**
     * 删除状态信息
     * 
     * @param ztId 状态主键
     * @return 结果
     */
    @Override
    public int deleteZhuangtaiByZtId(Long ztId)
    {
        return zhuangtaiMapper.deleteZhuangtaiByZtId(ztId);
    }
}
